package cn.stylefeng.guns.modular.tool.mapper;

import java.util.List;
import java.util.Map;

import cn.stylefeng.guns.modular.order.model.params.OrderPutParam;
import cn.stylefeng.guns.modular.order.model.result.OrderPutResult;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.tool.entity.ToolOrderPut;
import cn.stylefeng.guns.modular.tool.model.params.ToolOrderPutParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolOrderPutResult;

/**
 * <p>
 * 云仓入库表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-04-03
 */
public interface ToolOrderPutMapper extends BaseMapper<ToolOrderPut> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-04-03
     */
    List<ToolOrderPutResult> customList(@Param("paramCondition") ToolOrderPutParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-04-03
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolOrderPutParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-04-03
     */
    Page<ToolOrderPutResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolOrderPutParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-04-03
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolOrderPutParam paramCondition);

	String checkCustomerOrder(@Param("putCustomerNumber")String putCustomerNumber);

	ToolOrderPut findByThelastone();

	ToolOrderPutResult findBySpec(@Param("paramCondition")ToolOrderPutParam param, @Param("operateId")Long operateId);

	boolean saveBatchList(@Param("list")List<ToolOrderPutParam> list);

    OrderPutResult findBySpecNew(@Param("paramCondition") OrderPutParam param, @Param("operateId")Long operateId);
}
